package com.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dao.SpecialFilmListDAO;
import com.pojo.SpecialFilmList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@SuppressWarnings("ALL")
@Service
public class SpecialFilmListService extends ServiceImpl<SpecialFilmListDAO, SpecialFilmList> {

    @Autowired
    private SpecialFilmListDAO specialFilmListDAO;

    /**
     * 根据专题获取电影
     * @param typeid
     * @param page
     * @param size
     * @return
     */
    public IPage  getSpecialFilmByTypeId(int id,int page,int size)
    {
        Page p  = new Page(page,size);
        IPage result = specialFilmListDAO.getSpecialFilmByTypeId(p,id);
        return result;
    }
}
